import request from '@/utils/request'
export default {
  //登录
  login(userInfo) {
    return request({
      url: `/services_user/user/login`,
      method: 'post',
      data: userInfo
    })
  },

  //根据token获取用户信息
  getLoginInfo() {
    return request({
      url: `/services_user/user/getLoginInfo`,
      method: 'get',
    })
  },

  checkLogin(){/*验证是否已经登录*/
    return request({
      url: `/services_user/user/wx/checkLogin`,
      method: 'get',
    })
  }
}
